package com.jt.controller;

import com.jt.pojo.User;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
public class UserController {
    @RequestMapping("/hello")
    public String hello(){
        return "你好SpringMVC";
    }
    @RequestMapping("FindUser")
      public  String FindUser(User user){
        System.out.println(user);
        return "查询成功";
      }
}
